-- card: 54305 from stack: in.07 Reference -- bmap block id: 0 -- flags: 0000 -- background id: 13647 -- name: -- part 1 (field) -- low flags: 00 -- high flags: 0000 -- rect: left=272 top=144 right=162 bottom=407 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: -- part 2 (field) -- low flags: 00 -- high flags: 0000 -- rect: left=58 top=125 right=182 bottom=133 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: -- part 3 (button) -- low flags: 00 -- high flags: A004 -- rect: left=17 top=288 right=310 bottom=101 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Expressions ----- HyperTalk script ----- on mouseUp go to card id 53786 end mouseUp -- part contents for background part 2 ----- text ----- Conditional expression -- part contents for background part 1 ----- text ----- A conditional expression is often convenient to use instead of an if-statement. Compare the following statement sequences; can be written as The else-branch of a conditional expression may not be omitted. The types of the expressions in the then-branch and the else-branch must be compatible. If a conditional expression is part of another expression, it must be enclosed in parentheses: a := 1 + (if x=y then 1 else 2); -- part contents for card part 2 ----- text ----- if x=y then a := 1 else a := 2 -- part contents for card part 1 ----- text ----- a := if x=y then 1 else 2;